Skip to content

Set correct column types and full cell description for simple tables#119

Merged
mattwar merged 2 commits into
mainfrom
user/mattwar/ResultsViewColumnLayout
May 14, 2026
Merged

Set correct column types and full cell description for simple tables#119
mattwar merged 2 commits into
mainfrom
user/mattwar/ResultsViewColumnLayout

Conversation

@mattwar

@mattwar mattwar commented May 14, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 14, 2026 19:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR updates the SimpleDataTableProvider to stop HTML-escaping table data, instead passing raw values via Simple-DataTables “cell objects” and explicitly setting column types so rendering and sorting behave correctly (and avoid HTML parsing errors).

Changes:

  • Removed HTML-escaping for cell values/column names and adjusted unit tests accordingly.
  • Updated the webview init script to provide per-cell { data, text, order } objects and to set an explicit sort/render type for every column.
  • Added custom order computation to enable correct sorting without relying on HTML parsing.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/Client/tests/unit/dataTableProvider.test.ts Updates expectations to reflect raw (non-HTML-escaped) payload and new script-escaping behavior.
src/Client/features/dataTableProvider.ts Removes escapeHtml, builds explicit column settings, and passes cell objects + order values into Simple-DataTables.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Client/features/dataTableProvider.ts Outdated
Comment thread src/Client/features/dataTableProvider.ts Outdated
Comment thread src/Client/tests/unit/dataTableProvider.test.ts Outdated
@mattwar mattwar merged commit 1e42fd9 into main May 14, 2026
5 checks passed
@mattwar mattwar deleted the user/mattwar/ResultsViewColumnLayout branch May 14, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants